﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Gnosis.Babel;

namespace Gnosis.SQLite.Columns
{
    public class ColumnDefinition
        : Expression
    {
        protected ColumnDefinition(ColumnName name, TypeName typeName, IList<IColumnConstraint> constraints)
            : base()
        {
            AddChild(name);
            AddChild(typeName);

            foreach (IColumnConstraint constraint in constraints)
                AddChild(constraint);
        }
    }
}
